<template>
  <DtDrawer @register="register">
    <div class="p-5">
      <AButton type="primary" @click="closeDrawer">从内部关闭弹框</AButton>
      <p v-for="it in con">{{ it }}</p>
    </div>
  </DtDrawer>
</template>

<script lang="ts" setup>
import { useDrawer } from '@zm-pkg/ui'

const con = []

for(let i = 0; i < 100; i++) {
  con.push('我是内容')
}

const [register, { closeDrawer }] = useDrawer({
  title: '我是抽屉1',
  getContainer: () => document.body,
})
</script>